package com.graduation_design.service;

import com.graduation_design.entity.AppCartItem;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.List;

/**
* @author 从南
* @description 针对表【app_cart_item】的数据库操作Service
* @createDate 2024-02-16 18:15:58
*/
public interface AppCartItemService extends IService<AppCartItem> {

    List<AppCartItem> getCurrent();

    long getCount();

    Object getTotal(ArrayList<Long> ids);

    void updateQuantity(Long cartItemId, Integer quantity);

    void add(AppCartItem appCartItem);

    AppCartItem getCombinedCartItems(long userId, Long productId, Long skuId, Integer quantity);
}
